package Util;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import pojo.Areas;

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtil {
	
	public static ObjectMapper mapper = new ObjectMapper();
	
	public static String listToJson(List<Areas> list) throws JsonProcessingException{
		String json =mapper.writeValueAsString(list);
		return json;
	}
	
	

	

	

}
